﻿using Infortime.Enums;

namespace Infortime.Caches
{
    public class CaptchaPhoneCacheItem
    {
        public CaptchaPhoneCacheItem(string code) { Code = code; }
        public string Code { get; set; }
    }

    public class CaptchaPhoneCacheKey
    {
        public CaptchaPhoneCacheKey(ValidationPhoneTypeEnum validationPhoneType, string phone)
        {
            Phone = phone;
            ValidationPhoneType = validationPhoneType;
        }
        public ValidationPhoneTypeEnum ValidationPhoneType { get; set; }
        public string Phone { get; set; }

        public override string ToString()
        {
            return $"Phone:{ValidationPhoneType.ToString()}:{Phone}";
        }
    }
}
